﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace ZoneLineNew.Attributes {
    public class DgColumnAttr : Attribute {
        public string HeaderName { get; set; }

        public int Index { get; set; }

        public string PropertyName { get; set; }

        public IValueConverter Converter { get; set; }

        public DgColumnAttr(string headerName, int index = 9999) {
            HeaderName = headerName;
            Index = index;
        }
    }

    public class DgColumnConvertAttr : Attribute {
        public DgColumnConvertAttr(IValueConverter converter) {
            Converter = converter;
        }

        public IValueConverter Converter { get; private set; }
    }
}
